<?php
	$filename = $_FILES['fileField']['name'];
	$tmp_name = $_FILES['fileField']['tmp_name'];
	$type = $_FILES['fileField']['type'];

	if($type == 'image/png' || $type == 'image/jpeg') {
		if(is_uploaded_file($tmp_name)) {
			move_uploaded_file($tmp_name, "datas/blog_photos/".$filename);
		}
	}

	header("Location: ../personal_home.html");
?>